<!-- 导航URL -->
<div class="row wrapper border-bottom white-bg page-heading">
	<div class="col-md-12">
		<ol class="breadcrumb">
			<li><a>主页</a></li>
			<li><a>商户管理</a></li>
			<li class="active"><strong>商户进件审核</strong></li>
		</ol>
	</div>
</div>


<!-- 主要内容 -->
<div class="wrapper wrapper-content animated fadeIn" ng-app
	ng-controller="remerchantExamineDetailCtrl">
	<form class="form-horizontal" id="form1">
		<div class="row">
			<div class="col-lg-12">
				<div class="tabs-container tab_other">
					<uib-tabset> 
						<uib-tab> 
							<uib-tab-heading>
								<span class="block m-t-xs"> <i class="fa fa-laptop"></i> <strong
									class="font-bold">审核信息</strong>
								</span> 
							</uib-tab-heading>
							
							<div class="panel-body ibox float-e-margins">
		
								<div class="ibox-title">
									<h5>基本信息</h5>
								</div>
								
								<div class="ibox-content">
									
									<div class="form-group">
										<label class="col-sm-2 control-label">商户进件编号：</label>
										<div class="col-sm-2 checkbox" ng-bind="mbp.id">
										</div>
										
										<label class="col-sm-2 control-label">商户编号：</label>
										<div class="col-sm-2 checkbox" ng-bind="mbp.merchantNo">
										</div>
									</div>
									
									<div class="form-group">
										<label class="col-sm-2 control-label">商户名称：</label>
										<div class="col-sm-2 checkbox" ng-bind="info.merchantName">
										</div>
										
										<label class="col-sm-2 control-label">手机号：</label>
										<div class="col-sm-2 checkbox" ng-bind="info.mobilephone">
										</div>
									</div>
		
									<div class="form-group">
										<label class="col-sm-2 control-label">一级代理商：</label>
										<div class="col-sm-2 checkbox" ng-bind="agent.agentName">
										</div>
										<label class="col-sm-2 control-label">一级代理商所属销售：</label>
										<div class="col-sm-2 checkbox" ng-bind="agent.saleName">
	 									</div>
									</div>
									
									<div class="form-group">
										<label class="col-sm-2 control-label">进件来源：</label>
										<div class="col-sm-2 checkbox" ng-bind="mbp.itemSource |formatDropping:merItemSourceList">
										</div>
										<label class="col-sm-2 control-label">业务产品：</label>
										<div class="col-sm-2 checkbox" ng-bind="mbp.bpName">
	 									</div>
									</div>
									
								
									<div class="form-group">
										<label class="col-sm-2 control-label">法人姓名：</label>
										<div class="col-sm-2 checkbox" ng-bind="info.lawyer">
										</div>
										<label class="col-sm-2 control-label">法人身份证号：</label>
										<div class="col-sm-2 checkbox" ng-bind="info.idCardNo">
										</div>
										<div class="col-sm-2 checkbox" style="padding: 0">
											<button ng-click="approve()" class="btn btn-sm-ls" style="width: 100px;" type="button">身份验证</button>
										</div>
										<div class="col-sm-2 checkbox">
											<p ng-show="apps==2">开户名、身份证、银行卡号不匹配</p>
											<p ng-show="apps==0">验证通过</p>
											
										</div>
									</div>
									<div class="form-group">
											<label class="col-sm-2 control-label">所属代理商：</label>
											<div class="col-sm-2 checkbox" ng-bind="merAgent.agentName">
											</div>
										</div>
									
								</div>
							</div>
							
							<div class="panel-body ibox float-e-margins">
								<div class="ibox-title">
									<h5>机具信息</h5>
								</div>
								<div class="ibox-content">
									<div class="form-group" ng-repeat="val in terminal">
										<label class="col-sm-2 control-label">业务产品：</label>
										<div class="col-sm-2 checkbox" ng-bind="val.bpName">
										</div>
										<label class="col-sm-2 control-label">机具号：</label>
										<div class="col-sm-2 checkbox" ng-bind="val.sn">
										</div>
									</div>
									<div class="form-group">
										<label class="col-sm-2 control-label">机具总数：</label>
										<div class="col-sm-2 checkbox" ng-bind="terminalTotal">
										</div>
									</div>
								</div>
							</div>
							
							<div class="panel-body ibox float-e-margins">
									<div class="ibox-title">
										<h5>经营信息</h5>
									</div>
									<div class="ibox-content">
			
										<div class="form-group">
											<label class="col-sm-2 control-label">商户类型：</label>
											<div class="col-sm-2 checkbox" ng-bind="merchantTypes(info.merchantType)">
											</div>
										</div>
			
										<div class="form-group" ng-hide="info.merchantType==1">
											<label class="col-sm-2 control-label">经营范围：</label>
											<div class="col-sm-1 checkbox" ng-bind="info.sysName">
											</div>
											<div class="col-sm-2 checkbox" ng-bind="info.twoSysName">
											</div>
										</div>
										
									</div>
								</div>
								
							<div class="panel-body ibox float-e-margins">
									<div class="ibox-title">
										<h5>备注</h5>
									</div>
									<div class="ibox-content">			
											<div class="form-group">
												<div class="col-sm-3">
													<textarea rows="5" cols="100" disabled="disabled" class="form-control" ng-model="info.remark"/>
												</div>
											</div>
										
									</div>
							</div>
				
							<div class="panel-body ibox float-e-margins">
		
								<div class="ibox-title">
									<h5>审核记录</h5>
								</div>
								<div class="ibox-content">
									<div class="gridStyle auditDetail" style="height: 200px;" ui-grid-resize-columns ui-grid="merchantRecords"/>
								</div>
								
								
							</div>
							
							<div class="panel-body ibox float-e-margins">
		
								<div class="ibox-title">
									<h5>明细</h5>
								</div>
								<div class="ibox-content">
									<div class="form-group">
										<div class="gridStyle auditDetail" style="height: 500px;" ui-grid-resize-columns ui-grid="merchantDetailed"/>
									</div>
									<div class="form-group" style="padding-bottom: 20px;">
										<div class="col-img"  ng-repeat="m in listMris">
											<div>{{m.itemName}}</div>
											<div><a href="{{m.content}}" fancybox rel="group" title="{{m.remark}}"> <img width="250px" height="150px" ng-src="{{m.content}}"/></a></div>
											<div ng-show="m.checkStatus==1"><input type="checkbox" ng-click="rdts(1,m.id,m.mriId)">不通过</div>
										</div>
									</div>
									<div class="form-group">
										<label class="col-sm-2 control-label">审核意见：</label>
										<div class="col-sm-6">
											<textarea ng-keydown="upds()" ng-model="asd.oppend" class="form-control" rows="5"></textarea>
										</div>
									</div>
								</div>
							</div>
							
						</uib-tab> 
						
						<uib-tab> 
							<uib-tab-heading> 
								<span
									class="block m-t-xs"> <i class="fa fa-laptop"></i> <strong
									class="font-bold">服务费率</strong>
								</span> 
							</uib-tab-heading> 
							
							<div class="panel-body">
								<div class="gridStyle" style="height: 200px;" ui-grid-resize-columns ui-grid="merchantRateList"/>
								<div class="block m-t-xs">
	                           		<strong>备注：</strong><br/>
										每笔固定金额1元，则填写商户费率1.00;<br/>
										每笔扣率为0.1%则填写商户费率0.1%;<br/>
										每笔扣率为0.1%，封顶3元，保底1元则填写商户费率1.00~0.1%~3.00;<br/>
										每笔扣率为0.1%加上固定金额1元，则填写商户费率0.1%+1.00;<br/>
										单笔阶梯扣率如10000.00元以下，扣率0.38%，10000.00元及以上扣率0.37%，则填写0.38%<10000.00<0.37%;<br/>
						  		 </div>
							</div>
							
						</uib-tab> 
						
						<uib-tab> 
							<uib-tab-heading> 
								<span
									class="block m-t-xs"> <i class="fa fa-laptop"></i> <strong
									class="font-bold">服务限额</strong>
								</span> 
							</uib-tab-heading> 
							<div class="panel-body">
	                          	<div class="gridStyle" style="height: 300px;" ui-grid-resize-columns ui-grid="merchantQuotaList"/>
	                        </div>
	                        
						</uib-tab> 
					</uib-tabset>

				</div>
			</div>
		</div>
			<div class="col-lg-12 bgff">
				<div class="col-sm-12">
					<button class="btn btn-new btn-mr20" style="width: 130px;" type="button"
					ng-click="commitInfo(1)" ng-disabled="submitting" id="btnSubmit">复审通过</button>
					<button class="btn btn-new btn-mr20" style="width: 130px;" type="button"
						ng-click="commitInfo(2)" ng-disabled="submitting" id="btnSubmit">复审不通过</button>
				   <button class="btn btn-new btn-mr20 " style="width: 130px;" type="button"
						ng-click="commitInfo(3)" ng-disabled="submitting" id="btnSubmit">退件</button>
					
					<a class="btn btn-primary4 btn-mr20" style="width: 130px;" type="button" ui-sref="risk.recheckQuery"
					id="btnSubmit">返回</a>
				
					<button class="btn btn-new btn-mr20 " style="width: 190px;" type="button"
						ng-click="commitInfo(4)" ng-disabled="submitting" id="btnSubmit">复审通过并审核下一条</button>
					<button class="btn btn-new btn-mr20" style="width: 190px;" type="button"
						ng-click="commitInfo(5)" ng-disabled="submitting" id="btnSubmit">复审不通过并审核下一条</button>
					<button class="btn btn-new btn-mr20" style="width: 190px;" type="button"
						ng-click="commitInfo(6)" ng-disabled="submitting" id="btnSubmit">退件并审核下一条</button>
				</div>	
					
					
			</div>
	</form>
</div>
